﻿@{
    Layout = null;
}
<ul id="EditMenu">
    @if (ViewBag.toEdit != "AddNewProduct")
    {
        if (ViewBag.IsManager)
        {
        <li@{if (ViewBag.toEdit == "EditInfo")
             {<text> class="active"</text> }}>
            <a href="@Url.Action("Edit", "ProductManage", new { toEdit = "EditInfo", id = ViewBag.ProductId })"><i class="fa fa-info-circle"></i>&nbsp;Ürün Bilgileri</a>
        </li>
        <li@{if (ViewBag.toEdit == "EditImages")
             {<text> class="active"</text> }}>
            <a href="@Url.Action("Edit", "ProductManage", new { toEdit = "EditImages", id = ViewBag.ProductId })"><i class="fa fa-image"></i>&nbsp;Resimler</a>
        </li>
        <li@{if (ViewBag.toEdit == "EditGroups")
             {<text> class="active"</text> }}>
            <a href="@Url.Action("Edit", "ProductManage", new { toEdit = "EditGroups", id = ViewBag.ProductId })"><i class="fa fa-level-down"></i>&nbsp;Gruplar</a>
        </li>
        <li@{if (ViewBag.toEdit == "EditProperties")
             {<text> class="active"</text> }}>
            <a href="@Url.Action("Edit", "ProductManage", new { toEdit = "EditProperties", id = ViewBag.ProductId })"><i class="fa fa-list"></i>&nbsp;Ekstra Alanlar</a>
        </li>
        <li@{if (ViewBag.toEdit == "EditVariant")
             {<text> class="active"</text> }}>
            <a href="@Url.Action("Edit", "ProductManage", new { toEdit = "EditVariant", id = ViewBag.ProductId })"><i class="fa fa-caret-square-o-down"></i>&nbsp;Variant Değerler</a>
        </li>
        <li@{if (ViewBag.toEdit == "EditLinked")
             {<text> class="active"</text> }}>
            <a href="@Url.Action("Edit", "ProductManage", new { toEdit = "EditLinked", id = ViewBag.ProductId })"><i class="fa fa-link"></i>&nbsp;Bağlı Ürünler</a>
        </li>
        <li@{if (ViewBag.toEdit == "EditStockPrices")
             {<text> class="active"</text> }}>
            <a href="@Url.Action("Edit", "ProductManage", new { toEdit = "EditStockPrices", id = ViewBag.ProductId })"><i class="fa fa-money"></i>&nbsp;Fiyatlar</a>
        </li>
        <li@{if (ViewBag.toEdit == "EditStok")
             {<text> class="active"</text> }}>
            <a href="@Url.Action("Edit", "ProductManage", new { toEdit = "EditStok", id = ViewBag.ProductId })"><i class="fa fa-cubes"></i>&nbsp;Stok</a>
        </li>
        <li@{if (ViewBag.toEdit == "EditXmlImport")
             {<text> class="active"</text> }}>
            <a href="@Url.Action("Edit", "ProductManage", new { toEdit = "EditXmlImport", id = ViewBag.ProductId })"><i class="fa fa-table"></i>&nbsp;Tedarik</a>
        </li>
        }
        if (ViewBag.IsSeoManager)
        {
        <li@{if (ViewBag.toEdit == "EditMeta")
             {<text> class="active"</text> }}>
            <a href="@Url.Action("Edit", "ProductManage", new { toEdit = "EditMeta", id = ViewBag.ProductId })"><i class="fa fa-code"></i>&nbsp;Meta Bilgileri</a>
        </li>
        }
        if (ViewBag.IsManager)
        {
        <li@{if (ViewBag.toEdit == "DeleteProduct")
             {<text> class="active"</text> }}>
            <a href="@Url.Action("Edit", "ProductManage", new { toEdit = "DeleteProduct", id = ViewBag.ProductId })"><i class="fa fa-remove"></i>&nbsp;Sil</a>
        </li>
        }
    }
</ul>
